///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version Aug 22 2007)
// http://www.wxformbuilder.org/
//
// PLEASE DO "NOT" EDIT THIS FILE!
///////////////////////////////////////////////////////////////////////////

#ifdef WX_PRECOMP

#include "wx/wxprec.h"

#ifdef __BORLANDC__
#pragma hdrstop
#endif //__BORLANDC__

#else
#include <wx/wx.h>
#endif //WX_PRECOMP

#include "DialogMinMaxTemplate.h"

///////////////////////////////////////////////////////////////////////////

DialogMinMaxTemplate::DialogMinMaxTemplate( wxWindow* parent, int id, wxString title, wxPoint pos, wxSize size, int style ) : wxDialog( parent, id, title, pos, size, style )
{
	this->SetSizeHints( wxDefaultSize, wxDefaultSize );
	
	wxBoxSizer* bSizer1;
	bSizer1 = new wxBoxSizer( wxVERTICAL );
	
	staticTextTitle = new wxStaticText( this, wxID_ANY, wxT("Area:"), wxDefaultPosition, wxDefaultSize, 0 );
	staticTextTitle->Wrap( -1 );
	staticTextTitle->SetFont( wxFont( 10, 74, 90, 92, false, wxT("Sans") ) );
	
	bSizer1->Add( staticTextTitle, 0, wxALL|wxEXPAND, 8 );
	
	wxBoxSizer* bSizer2;
	bSizer2 = new wxBoxSizer( wxHORIZONTAL );
	
	staticTextMin = new wxStaticText( this, wxID_ANY, wxT("Min:"), wxDefaultPosition, wxDefaultSize, 0 );
	staticTextMin->Wrap( -1 );
	bSizer2->Add( staticTextMin, 1, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
	
	spinCtrlMin = new wxSpinCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0, 500000, 0);
	bSizer2->Add( spinCtrlMin, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
	
	bSizer1->Add( bSizer2, 1, wxEXPAND, 5 );
	
	wxBoxSizer* bSizer3;
	bSizer3 = new wxBoxSizer( wxHORIZONTAL );
	
	staticTextMax = new wxStaticText( this, wxID_ANY, wxT("Max:"), wxDefaultPosition, wxDefaultSize, 0 );
	staticTextMax->Wrap( -1 );
	bSizer3->Add( staticTextMax, 1, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
	
	spinCtrlMax = new wxSpinCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 0, 500000, 0);
	bSizer3->Add( spinCtrlMax, 0, wxALIGN_CENTER_VERTICAL|wxALL, 5 );
	
	bSizer1->Add( bSizer3, 1, wxEXPAND, 5 );
	
	this->SetSizer( bSizer1 );
	this->Layout();
	
	// Connect Events
	spinCtrlMin->Connect( wxEVT_COMMAND_SPINCTRL_UPDATED, wxSpinEventHandler( DialogMinMaxTemplate::OnNewValueMin ), NULL, this );
	spinCtrlMax->Connect( wxEVT_COMMAND_SPINCTRL_UPDATED, wxSpinEventHandler( DialogMinMaxTemplate::OnNewValueMax ), NULL, this );
}
